package cn.wolfcode.wolf2w.repository;


import cn.wolfcode.wolf2w.domain.Travel;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
* 游记持久层接口
*/
public interface TravelRepository extends MongoRepository<Travel, String>{
    /**
     * 根据目的地查询阅读人数前三的数据
     * @param destId
     * @param pageable
     * @return
     */
    List<Travel> findByDestId(String destId, Pageable pageable);
}
